<?php
/**
 * Created by PhpStorm.
 * User: User
 * Date: 2017/10/11
 * Time: 8:24
 */class Circle
{
     private $radus;
    private $r;



    public function  _set($name,$value){
        if($name=='r' && $value<0) {
            $this->radus = 0;
        }else{
            $this->$name=$value;
        }
    }

}
class shape{
    public  function  getArea(){}
    public static function getPi(){
        return 3.14;
    }
}
class Rectangle extends Shape
{
    private $width,$height;
    public function _construct($width,$height)
    {
        $this->height=$height;
        $this->width=$width;
    }
    public function getArea(){
        return $this->width*$this->height;
    }

}